import { createBrowserRouter } from 'react-router-dom';
import App from '../App';
import HomePage from '../pages/HomePage';
import PDFConverter from '../components/PDFConverter';
import OCRConverter from '../components/OCRConverter';
import ImagesToPDF from '../components/ImagesToPDF';
import PDFMerger from '../components/PDFMerger';
import PDFSplitter from '../components/PDFSplitter';

export const router = createBrowserRouter([
  {
    path: '/',
    element: <App />,
    children: [
      {
        index: true,
        element: <HomePage />,
      },
      {
        path: 'pdf-to-word',
        element: <PDFConverter type="word" />,
      },
      {
        path: 'pdf-to-ppt',
        element: <PDFConverter type="ppt" />,
      },
      {
        path: 'ocr',
        element: <OCRConverter />,
      },
      {
        path: 'images-to-pdf',
        element: <ImagesToPDF />,
      },
      {
        path: 'merge-pdf',
        element: <PDFMerger />,
      },
      {
        path: 'split-pdf',
        element: <PDFSplitter />,
      }
    ]
  }
]);